import request from '@/utils/request'

/**
 * 增加标注
 */
export function addMarker(data) {
  return request({
    method: 'post',
    url: '/map/geo/add',
    data
  })
}

/**
 * 查询标注
 */
export function getMarkers(params) {
  return request({
    method: 'get',
    url: '/map/geo/query',
    params
  })
}

// 删除标注
export function deleteMarker(pkid) {
  return request({
    method: 'delete',
    url: `/map/geo/delete?pkid=${pkid}`
  })
}

// 修改标注
export function updateMarker(pkId, params) {
  return request({
    method: 'put',
    url: `/map/geo/update/${pkId}`,
    data: params
  })
}
